<a href="javascript:void(0);">Bind Sina Weibo</a>
<script type="text/script">
var sk = "<?php echo Constant('SINA_KEY') ?>";
var ss = "<?php echo Constant('SINA_SECRET'); ?>";
var return_url = "http://tuizhi.in/users/bindsns/";

document.write('----');
console.log('imm');

function bindsns() {
    window.open('https://api.weibo.com/oauth2/authorize?client_id=' + sk + '&response_type=code&redirect_uri=' + return_url);
}
console.log('abc');
console.log(bindsns);
console.log(return_url);
console.log('edf');
</script>

